* {
    &::-webkit-scrollbar {
        height: 6px;
        width: 6px;
        margin-right: 5px;
        background: #f5f5f5;
        transition: all 0.3s ease-in-out;
        border-radius: 0px
    }

    &::-webkit-scrollbar-track {
        -webkit-border-radius: 0px;
        border-radius: 0px;
    }

    &::-webkit-scrollbar-thumb {
        -webkit-border-radius: 0px;
        border-radius: 0px;
        background: rgba(0, 0, 0, 0.5);

        &:hover {
            background: rgba(0, 0, 0, 0.6);
        }

        &:active {
            background: rgba(0, 0, 0, 0.8);
        }

        &:window-inactive {
            background: rgba(0, 0, 0, 0.4);
        }
    }
}

.page-header {
    height: 35px;
    background: transparent;

    .actions {
        right: 20px;

        button {
            background: #000;
            color: #fff;
            line-height: 30px;
            padding: 0 8px;
            margin: 0;
            border: none;

            &.active {
                background: #888;
            }
        }
    }
}

.checkbox {
    display: inline-block;
    font-family: "Font Awesome 5 Free";
    font-size: inherit;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    text-align: center;
    &:before {
        content: "\f0c8";
    }

    &.checked {
        &:before {
            content: "\f14a";
        }
    }
}

.table-header {
    background: #333;
    color: #fff;
    line-height: 40px;

    span {
        line-height: 40px;
    }

    .btn {
        padding: 0 10px;
        vertical-align: top;
        height: 40px;
    }
}

.table-body {
    .file-row,
    .share-file-row {
        line-height: 30px;

        .row-tools {
            display: none;
        }

        .share_time {
            .hover-hide {
                font-size: 12px;
            }
        }

        &:hover {
            background: rgba(0, 0, 0, .1);

            .row-tools {
                display: block;
            }

            .hover-hide {
                display: none;
            }
        }

        .row-edit {
            display: none;
            width: 80%;

            input {
                height: 30px;
                width: 80%;
            }
        }

        .row-editable {
            .row-name {
                display: none;
            }

            .row-edit {
                display: inline-block;
            }
        }
    }
}

.grid-box {
    .row {
        margin: 0;
    }
    .col-md-2 {
        box-sizing: border-box;

        .file-icon {
            position: relative;
            text-align: center;

            .checkbox {
                position: absolute;
                top: 0;
                left: 0;
                display: none;
            }

            .fa {
                font-size: 60px;
                line-height: 90px;
            }
        }

        .row-name {
            display: block;
            padding: 5px;
            white-space: nowrap;
            text-overflow: ellipsis;
            width: 100%;
            overflow: hidden;
            text-align: center;
        }

        &.active,
        &:hover {
            border: 1px solid;

            .checkbox {
                display: block;
            }
        }

    }

}

.crumb-box {
    .col-xs-2 {
        text-align: right;
        padding: 8px 15px;
    }
}

.dropdown {
    position: relative;
    background: #333;
    color: #fff;
    display: inline-block;

    .dropdown-menu {
        display: none;
        position: absolute;
        background: #888;
        color: #fff;
        width: 100%;
        z-index: 99;
        text-align: center;
        line-height: 30px;

        li {
            list-style: none;

            a {
                color: #fff;
                text-decoration: none;
            }

            &:hover {
                background: #333;
            }
        }
    }

    &:hover {
        .dropdown-menu {
            display: block;
        }
    }
}

.dialog.dialog-box {
    .dialog-body {
        &.zd-tab {
            padding: 0;

            .zd-tab-head {}

            .zd-tab-body {
                margin-top: 10px;

                .form-control {
                    font-size: 20px;
                    width: 100%;
                    box-sizing: border-box;
                    border: none;
                    border-bottom: 1px solid #333;
                    padding: 5px;
                }
            }
        }

        .row {
            margin: 0;
        }
    }
}

#shareModal {
    width: 600px;
}

.dialog.dialog-box.upload-dialog {
    right: 0;
    bottom: 0;
    width: 50%;

    .dialog-body {
        .file-box {
            max-height: 200px;
            overflow-y: auto;

            .row {
                &:hover {
                    background: rgba(0, 0, 0, .1);
                }
            }
        }
    }

    &.max {
        display: block;
    }

    &.min {
        height: 40px;
        width: 100px;
        display: block;
    }
}

.tree-box {
    .tree-item {
        display: block;
        white-space: nowrap;
        text-decoration: none;

        >span {
            cursor: pointer;
            display: inline-block;
            zoom: 1;
            vertical-align: middle;

            &:first-child,
            &:nth-child(2),
                {
                display: inline-block;
                width: 20px;
                font-family: "Font Awesome 5 Free";
                font-size: inherit;
                text-rendering: auto;
                font-style: normal;
                font-variant: normal;
            }

            &:first-child {
                &:before {
                    content: "\f067";
                }
            }

            &:nth-child(2) {
                &:before {
                    content: "\f07b";
                }
            }
        }

        &:hover {
            background: #f4f9fd;
            border-color: #e5f0fb;
        }
    }

    li {
        list-style: none;

        ul {
            display: none;
        }

        &.open {
            >ul {
                display: block;
            }

            >.tree-item {
                >span {
                    &:first-child {
                        &:before {
                            content: "\f068";
                        }
                    }

                    &:nth-child(2) {
                        &:before {
                            content: "\f07c";
                        }
                    }
                }

                &.empty {
                    >span {
                        &:first-child {
                            &:before {
                                content: " ";
                            }
                        }

                        &:nth-child(2) {
                            &:before {
                                content: "\f07b";
                            }
                        }
                    }
                }
            }
        }

        &.active {
            >.tree-item {
                background: #e5f0fb;
                border-color: #BBD4EF #fff;
            }
        }
    }
}

.app-box {
    text-align: center;

    .app-icon {
        img {
            width: 6.25rem;
            width: 6.25rem;
        }
    }

    .app-name {
        font-size: 1.875rem;
        margin: 0.625rem;
    }

    .app-url {
        display: block;
        background: #333;
        color: #fff;
        padding: 0.625rem 1.875rem;
        width: 12.5rem;
        margin: 0 auto;
    }

    .app-qr {
        img {
            width: 12.5rem;
            height: 12.5rem;
        }
    }
}

.zd_listbox {
    height: 225px;
    width: 100%;
    overflow: auto;
    margin: 0;
    padding: 10px;
    border-radius: 4px;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    border: 1px solid #ccc;

    li {
        list-style: none;
        line-height: 20px;
        text-align: center;
        cursor: pointer;

        &:hover {
            background: rgba(200, 200, 200, .5);
        }

        &.selected {
            background: #1b809e;
            color: #fff;
        }
    }
}

.list-group {
    .list-group-item {
        display: grid;
        grid-template: 60px / 60px 1fr;
        grid-gap: 10px;
        margin-bottom: 20px;
        background: #fff;

        .avatar {
            img {
                width: 60px;
                height: 60px;
            }
        }
    }
}

.zd_tree {
    .zd_tree_item {
        display: block;
        white-space: nowrap;
        text-decoration: none;
    }

    li {
        list-style: none;

        ul {
            display: none;
        }

        &.open>ul {
            display: block;
        }
    }

    .zd_tree_item {
        >span {

            &:first-child,
            &:nth-child(2) {
                display: inline-block;
                font-family: "Font Awesome 5 Free";
                font-size: inherit;
                text-rendering: auto;
            }

            cursor: pointer;
            display: inline-block;
            zoom: 1;
            vertical-align: middle;
        }

        &:hover {
            background: #f4f9fd;
            border-color: #e5f0fb;
        }

        >span {
            &:first-child {
                margin: 0 3px;
                width: 15px;
                height: 15px;
                &::before {
                    content: "\f067";
                }
            }

            &:nth-child(2) {
                width: 22px;
                height: 18px;
                margin-right: 5px;
                &::before {
                    content: "\f07b";
                }
            }
        }
    }

    li {
        &.open>.zd_tree_item>span {
            &:first-child {
                &::before {
                    content: "\f068";
                }
            }

            &:nth-child(2) {
                &::before {
                    content: "\f07c";
                }
            }
        }

        >.zd_tree_item.empty>span {
            &:first-child {
                &::before {
                    content: "";
                }
            }

            &:nth-child(2) {
                &::before {
                    content: "\f07b";
                }
            }
        }

        &.active>.zd_tree_item {
            background: #e5f0fb;
            border-color: #BBD4EF #fff;
        }
    }
}

.share-page {
    display: grid;
    grid-template-columns: 1fr 98px;

    .user-box {
        text-align: center;
    }
}

.file-row {
    display: grid;
    grid-template-columns:40px  1fr 100px 180px;
}
.file-edit-row {
    display: grid;
    grid-template-columns:40px  200px 1fr;
}

.share-file-row {
    display: grid;
    grid-template-columns:40px  1fr 180px 64px 64px 64px;
}

.password-box {
    max-width: 320px;
    margin: 20px auto;
    background: #fff;
    .box-header {
        position: relative;
        padding-left: 74px;
        background-color: #333;
        color: #fff;
        line-height: 60px;
        .avatar {
            position: absolute;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            left: 20px;
            top: 8px;
            img {
                width: 100%;
                height: 100%;
            }
        }
        .name {
            strong {
                margin-right: 10px;
            }
        }
    }
    .box-body {
        padding: 20px 20px 40px;
        button {
            height: 30px;
            width: 80px;
            background: #333;
            color: #fff;
            border: 0;
            outline: 0;
        }
        input {
            height: 30px;
            border: 0;
            outline: 0;
            background: #f4f4f4;
            padding: 0 10px;
        }
    }
}